package com.lmaos.basetools.authority;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class AuthorityUtils {
	public static void setAccessUrls(Map<String, Set<String>>accessUrlsMap,AuthorityMg authorityMg){
		for(Entry<String, Set<String>> entry:accessUrlsMap.entrySet()){
			UserAuthority authority = authorityMg.getUserAuthority(entry.getKey());
			if(authority!=null){
				authority.setAccessUrls(entry.getValue());
			}
		}
	}
}
